package cn.damai.mine.other;

public class IntegerTest {

	public static void main(String[] args) {

		Integer i1 = 10;
		Integer i2 = Integer.valueOf(10);
		Integer i3 = new Integer(10);
		System.out.println(i1 == i2);
		System.out.println(i2 == i3);

		Integer a = 100;
		Integer b = 100;
		System.out.println(a == b);

		Integer aa = 1000;
		Integer bb = 1000;
		System.out.println(aa == bb);
		
		/*true
		false
		true
		false*/

	}

}
